package com.cswangdao.mapper;

import com.cswangdao.domain.dto.KeywordPageDTO;
import com.cswangdao.domain.model.MarketKeyword;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface MarketKeywordMapper {

    Page<MarketKeyword> pageQueryInfo(KeywordPageDTO pageDTO);

    void addKeyword(MarketKeyword keyword);

    void updateById(MarketKeyword keyword);

    @Delete("delete from market_keyword where id = #{id}")
    void deleteById(Integer id);
}